import {defineStore} from 'pinia'
// 【使用】
//import layoutStore from "@/store/layoutStore.ts";
//
//layoutStore().count


//注意括号
//layoutStore().closeMenu  ✔️
//layoutStore.closeMenu    ❌
export default defineStore('layoutStore', {
    state: () => {
        return {
            closeMenu: false,
            showSetting: false,
            //
            showTab: true,
            showBreadcrumb: false,
            showHeader: true,
            showMenu: true,
            showFooter: true,
            //
            headerHeight: 60,
            tabHeight: 40,
            footerHeight: 40,
            //
            menuOpenWidth: 220,
            menuCloseWidth: 48,
        }
    },
    actions: {
        increment() {
            this.count++
        },
    },
})
